package cn.jbit.netty.server;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelOutboundHandlerAdapter;
import io.netty.channel.ChannelPromise;

/**
 * 源码学院只为培养优秀的bat程序员而生
 *
 * @author 学员张在成
 * @data 2020/8/9
 */
public class NettyServerOutBoundHandler extends ChannelOutboundHandlerAdapter {

    private ChannelHandlerContext  channelHandlerContext;

    @Override
    public void read(ChannelHandlerContext ctx) throws Exception {
        System.out.println("out one write");
    }

    @Override
    public void write(ChannelHandlerContext ctx, Object msg, ChannelPromise promise) throws Exception {
        super.read(channelHandlerContext);
    }
}
